local crit_data = {
	Warrior = { 0.29, 1.78, 1.30, -58.11, 1.14, }, -- 0.2, 0.7, 33.0, 127.3
	Paladin = { 0.27, 2.39, 0.54, -12.59, 0.65, }, -- 0.2, 0.8, 25.1, 109.0
	Shaman = { 0.24, 4.19, 0.55, -13.29, 1.68, }, -- 0.2, 0.8, 25.1, 83.3
	Rogue = { 0.49, -2.07, 1.17, -41.48, -0.30, }, -- 0.2, 1.2, 40.5, 214.6
	Mage = { 0.17, 12.04, 0.22, 9.79, 3.46, }, -- 0.3, 0.7, 24.9, 38.4
	Warlock = { 0.24, 4.87, 0.46, -7.32, 2.00, }, -- 0.2, 0.9, 24.6, 73.9
	Priest = { 0.19, 9.74, 0.28, 5.00, 3.18, }, -- 0.2, 0.6, 24.9, 45.2
	Hunter = { 0.56, -1.31, 0.69, -8.46, -1.51, }, -- 0.3, 0.7, 40.0, 260.5
	Druid = { 0.27, 3.12, 0.47, -7.75, 0.95, }, -- 0.2, 1.0, 25.1, 101.5
}

local function get_crit_from_agi(class, level, agi)
	local numbers = crit_data[class]
	local la, lb
	if level < 60 then
		la, lb = numbers[1], numbers[2]
	else
		la, lb = numbers[3], numbers[4]
	end
	local a = 1 / (la * level + lb)
	local b = numbers[5]
end

local spellcrit_data = {
	Warrior = { 0, 0, 0, 0, -1.00, }, -- nan, nan, nan, nan
	Paladin = { 0.77, 6.11, 2.21, -72.94, 3.34, }, -- 0.8, 7.3, 81.6, 135.4
	Shaman = { 0.92, -0.25, 2.23, -74.99, 2.19, }, -- 0.6, 3.4, 80.9, 227.1
	Rogue = { 0, 0, 0, 0, -1.00, }, -- nan, nan, nan, nan
	Mage = { 1.22, -4.66, 1.03, 5.87, 0.91, }, -- 0.9, 0.5, 78.1, 319.2
	Warlock = { 1.01, -1.86, 2.18, -70.15, 1.70, }, -- 0.5, 1.8, 82.7, 273.0
	Priest = { 1.16, -4.15, 1.38, -16.82, 1.25, }, -- 0.5, 0.9, 80.0, 300.1
	Hunter = { 0.88, 6.78, 1.92, -53.74, 3.61, }, -- 0.8, 1.6, 80.5, 112.0
	Druid = { 1.00, -1.09, 2.01, -60.13, 1.85, }, -- 0.6, 1.2, 80.4, 253.2
}
